package com.example.home.api

import com.bawei.common.entity.CommendEntity
import com.bawei.common.entity.SimpleVideoEntity
import com.example.common.api.BaseApiServer
import com.example.common.entity.SimpleTypeEntity
import com.example.common.model.BaseRepository
import com.example.network.BaseResponse
import retrofit2.http.GET
import retrofit2.http.Query

interface HomeServerApi:BaseApiServer{

    //获取视频分类
    @GET("/videotype/getSimpleType")
    suspend fun getSimpleTypes():BaseResponse<List<SimpleTypeEntity>>

    //获取分类视频
    @GET("/videosimple/getSimpleVideoByChannelId")
    suspend fun getSimpleVideoByChannelId(@Query("channelId")channelId:String,@Query("page")page:Int,@Query("pagesize")pagesize:Int):BaseResponse<List<SimpleVideoEntity>>

    //获取推荐视频
    @GET("/videosimple/getRecommendSimpleVideo")
    suspend fun getRecommendSimpleVideo(@Query("page")page:Int,@Query("pagesize")pagesize:Int):BaseResponse<List<SimpleVideoEntity>>

    //获取评论
     //获取视频评论
     @GET("/comment/getCommentByUserId")
     suspend fun getVideoCommends(@Query("datatype") dataType: Int, @Query("itemid") itemId:String): BaseResponse<List<CommendEntity>>

}